package MyStackByArray;

import java.util.Stack;

public class Test {
    public static void main(String[] args) {
        MyStack myStack = new MyStack();
        System.out.println(myStack.isEmpty());
        myStack.push(1);
        myStack.push(2);
        myStack.push(3);
        myStack.push(4);
        myStack.push(5);
        System.out.println(myStack);
        //打印栈帧长度
        System.out.println(myStack.size());
        System.out.println(myStack.isEmpty());
        //删除数据
        System.out.println(myStack.pop());
        //取出数据
        System.out.println(myStack.peek());
        System.out.println(myStack);
        System.out.println(myStack.size());
    }
}
